﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace IronLua
{
    public sealed class UserData
        : ILuaDynamicObject
    {
        private readonly object data;
        private Value metatable;

        internal UserData(object value)
        {
            this.data = value;
        }

        public object   Data { get; private set; }

        ITable      ILuaDynamicObject.Metatable { get; set; }
        ValueType   ILuaDynamicObject.Type { get { return ValueType.UserData; } }

    }
}
